package com.yxinmiracle.content.feign;

import com.yxinmiracle.content.pojo.Content;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @version 1.0
 * @author： YxinMiracle
 * @date： 2021-08-11 18:07
 */
@FeignClient(name = "content",path = "/content")
public interface ContentFeign {
    @GetMapping("/list/category/{id}")
    public Result<List<Content>> findByCategory(@PathVariable(name = "id" )Long id);

}
